<?php

require_once __DIR__ . '/abstract/AbstractDAO.php';
require_once __DIR__ . '/../bean/ModEnsino.php';

/**
 * Description of ModEnsinoDAO
 *
 * @author hyzandey
 */
class ModEnsinoDAO extends AbstractDAO{
    public function find(){
        $this->query = 'select * from mod_ensino order by mod_ensino';
        
        $this->executaQuery();
        
        $modEnsinoList = array();
        
        while ($row = $this->proximaLinhaResultado()){
            $modEnsinoList[] = new ModEnsino($row['mod_ensino']);
        }
        
        return ($modEnsinoList);
    }
}

?>
